<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <link rel="icon" href="./images/youmi_logo1.png">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>佑蜜官网-首页</title>
    <link rel="stylesheet" href="./css/index.css">
</head>

<body>
    <div class="app" style="overflow: hidden;">
        <div class="page-auto index">
            @@include('./nav.html',{
            "index": "active"
            })
            <div class="index__containter">
                <div class="left">
                    <h2>佑蜜电子优孕宝</h2>
                    <p>找到你的优孕时刻</p>
                    <div class="border"></div>
                    <p>Keying the excellent pregnancy moment</p>
                    <div class="btn youmi-video-btn">
                        观看视频
                    </div>
                </div>
                <div class="right">
                    <img class="flower" src="./images/index-flower.png" alt="">
                    <img class="equipment" src="./images/equipment.png" alt="">
                    <img class="equipment1" src="./images/equipment1.png" alt="">
                    <img class="flower1" src="./images/index-flower1.png" alt="">
                </div>
            </div>
        </div>
        <div class="footer">
            @@include('./footer.html')
        </div>
        <img class="bg index-bg-left" src="./images/index-bg-left.png" alt="">
        <img class="bg index-bg-right" src="./images/index-bg-right.png" alt="">
    </div>

    <div class="youmi-shadow close" style="display: none;">
        <div class="youmi-shadow-bg"></div>

        <div class="youmi-shadow-border">
            <video id="video1" autoplay="autoplay" controls="controls" loop="loop" width="100%">
                <source src="./video/brandsay.mp4" type="video/mp4">
            </video>
        </div>
    </div>

    <script src="./js/jquery.min.js"></script>
    <script>
        $(function () {
            $(document).ready(function () {
                $('.equipment').animate({
                    "top": "218px"
                }, 1000)
                $('.equipment1').animate({
                    "top": "0px"
                }, 1000)
            })

            var myVideo = document.getElementById("video1");

            $('.youmi-video-btn').click(function () {
                $('.youmi-shadow').show();
                myVideo.play();
            })

            $('.close').click(function () {
                $('.youmi-shadow').hide();
                myVideo.pause();
            })
        })
    </script>
</body>

</html>